
export default interface Events extends EventItem {
    // 系统事件
    SYSTEM: {
        keyback: {
            name: 'android返回按按钮事件',
            data: undefined,
            extra: undefined
        },
        navitembtn: {
            name: 'tablayout头部按钮点击'
            data: { type: 'right' | 'left', index: number },
            extra: undefined
        },
        resume: {
            name: '应用回到前台',
            data: undefined,
            extra: undefined
        },
    };
    // 自定义事件
    APP: {
        click: {
            name: '点击事件',
            data: {
                type: 1
            }
        }
    };

}

interface EventItem {
    SYSTEM: {
        [name: string]: {
            name?: string;
            data: any;
            extra: any;
        }
    };
    APP: {
        [name: string]: {
            name?: string;
            data: any;
        }
    }
}

